export default function counter(state, action){
    state = state || {count : 0};
    switch(action.type) {
        case 'INCREMENT' :
            return {count: state.count + 1};
        case 'DECREMENT' :
            return {count: state.count - 1};
        default :
            return state;
    }
}

